import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

public class Supplement {//追加

    public static void main(String[] args) {
        sup();
    }

    public static void sup() {
Scanner scan=new Scanner(System.in);
String a=scan.next();
        FileOutputStream fis1=null;
        try {
            fis1=new FileOutputStream("/Users/lgp/Desktop/aa/sw.txt",true);
            fis1.write(a.getBytes());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            if (fis1 !=null){
                try {
                    fis1.flush();
                    fis1.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
